package com.wh1200.mybatis.service

import com.wh1200.mybatis.xmlless.inter.ITenantProvider
import java.time.LocalDate

/**
 *
 * @author 吴昊
 * @date 2023/12/19 21:45
 * @since v4.0.0
 * @version 1.0
 */
class TestTenantProvider : ITenantProvider<String> {

  override fun getTenantId(): String {
    if (LocalDate.now().dayOfMonth % 2 == 0) {
      return "ab"
    } else {
      return "cd"
    }
  }

}
